jconed.toolbar.register_handler ( 'AlignLeft', function ( editor )
{
	jconed.execute ( 'justifyLeft' );
} ); 

jconed.toolbar.register_handler ( 'AlignCenter', function ( editor )
{
	jconed.execute ( 'justifyCenter' );
} ); 

jconed.toolbar.register_handler ( 'AlignRight', function ( editor )
{
	jconed.execute ( 'justifyRight' );
} ); 

jconed.toolbar.register_handler ( 'Bold', function ( editor )
{
        jconed.execute ( 'bold' );
} );

jconed.toolbar.register_handler ( 'Italic', function ( editor )
{
        jconed.execute ( 'italic' );
} );

jconed.toolbar.register_handler ( 'Underline', function ( editor )
{
        jconed.execute ( 'underline' );
} );

jconed.toolbar.register_handler ( 'Subscript', function ( editor )
{
        jconed.execute ( 'subscript' );
} );

jconed.toolbar.register_handler ( 'Superscript', function ( editor )
{
        jconed.execute ( 'superscript' );
} );

jconed.toolbar.register_handler ( 'Remove', function ( editor )
{
        jconed.execute ( 'removeFormat' );
} );
jconed.toolbar.register_handler ( 'Undo', function ( editor )
{
        jconed.execute ( 'undo' );
} );

jconed.toolbar.register_handler ( 'Redo', function ( editor )
{
        jconed.execute ( 'redo' );
} );
jconed.toolbar.register_handler ( 'OrderedList', function ( editor )
{
        jconed.execute ( 'insertOrderedList' );
} );

jconed.toolbar.register_handler ( 'UnorderedList', function ( editor )
{
        jconed.execute ( 'insertUnorderedList' );
} );

jconed.toolbar.register_handler ( 'Cut', function ( editor )
{
	try
	{
        	jconed.execute ( 'cut' );
	}
	catch ( e )
	{
		console.error ( 'Access to clipboard denied.' );
	}
} );

jconed.toolbar.register_handler ( 'Copy', function ( editor )
{
	try
	{
        	jconed.execute ( 'copy' );
	}
	catch ( e )
	{
		console.error ( 'Access to clipboard denied.' );
	}
} );

jconed.toolbar.register_handler ( 'Paste', function ( editor )
{
	try
	{
        	jconed.execute ( 'paste' );
	}
	catch ( e )
	{
		console.error ( 'Access to clipboard denied.' );
	}
} );
